<%--
  Created by IntelliJ IDEA.
  User: lt
  Date: 2017/5/3
  Time: 10:02
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML>
<html>
<head>
    <%@ include file="/common/include-core.jsp" %>
    <%@ include file="/common/jspTemplate.jsp" %>
    <title>用户管理</title>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 系统管理 <span class="c-gray en">&gt;</span> 用户管理 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">
    <div class="text-c">
        <form action="/admin/customer/getCustomerList.html" method="post" id="searchForm">
            <input type="hidden" id="count" value="${pageinfo.total }" />
            <input type="hidden" id="page" name="page" value="${pageinfo.pageNum }" />
            <input type="hidden" id="pageSize" name="pageSize" value="${pageinfo.pageSize }" />
            <input type="text" class="input-text" style="width:250px" placeholder="输入用户真实姓名" name="userName" value="${bean.userName}">
            <input type="text" class="input-text" style="width:250px" placeholder="输入用户电话" name="phone" value="${bean.phone}">
            <input type="hidden" class="input-text" style="width:250px" placeholder="输入用户电话" name="parentId" value="${bean.parentId}">
            <button type="submit" class="btn btn-success radius" ><i class="Hui-iconfont">&#xe665;</i> 搜用户</button>

            <button name="" class="btn btn-success" type="button" onclick='exportExcel();' id="exportd export"><i class="Hui-iconfont">&#xe640;</i> 导出Excel</button>

        </form>
    </div>
    <div class="cl pd-5 bg-1 bk-gray mt-20"> <span class="l"> <a class="btn btn-primary radius" onclick="layerTools.layerShowFullScreen('添加新客户','/admin/customer/modifyCustomerInfo.html','')" href="javascript:;"><i class="Hui-iconfont">&#xe600;</i> 添加新客户</a></span> <%--<span class="r">共有数据：<strong>54</strong> 条</span> --%></div>

    <div class="mt-20">
        <table class="table table-border table-bordered table-hover table-bg table-sort">
            <thead>
            <tr class="text-c">
                <th width="80">序号</th>
                <th width="100">用户名</th>
                <th width="90">电话</th>
                <th width="90">地址</th>
                <th width="90">openId</th>
                <th width="90">分销二维码</th>
                <th width="150">注册时间</th>
                <th width="150">类型</th>
                <th width="100">操作</th>
            </tr>
            </thead>
            <tbody>
                <c:forEach items="${pageinfo.list}" var="item" varStatus="status">
                    <tr class="text-c">
                      <td>${status.index+1}</td>
                        <td>${item.userName}</td>
                        <td>${item.phone}</td>
                        <td>${item.userAddress}</td>
                         <td>${item.openId}</td>
                         <td>${item.sourceQRCode}</td>
                         <td>  <fmt:formatDate value="${item.createTime}" pattern="yyyy-MM-dd HH:mm"/></td>
                        <td class="td-status">
                            <c:if test="${item.userType==1}"><span class="label label-success radius" >普通用户</span></c:if>
                            <c:if test="${item.userType==2 || item.userType=='' || empty item.userType}"><span class="label label-success radius">单位用户</span></c:if>
                        </td>
                        <td class="td-manage">
                            <a style="text-decoration:none" onClick="layerTools.layerShowFullScreen('用户信息变更','/admin/customer/modifyCustomerInfo.html?userId=${item.tid}','')" href="javascript:;" title="用户信息变更"><i class="Hui-iconfont">&#xe6df;</i></a>

                        </td>
                    </tr>
                </c:forEach>
            </tbody>
        </table>
        <div class="ui-page tr mt10" style="float: right;margin-top: 10px;margin-bottom: 10px"></div>
    </div>

</div>

<script type="text/javascript" src="/static/js/admin/user/getCustomerList.js"></script>
</body>
</html>
<%@ include file="/common/include-footer.jsp" %>